﻿using EyFramework.ORM;
using Ncov2019.Entity;
using Ncov2019.Entity.Dto;
using System.Collections.Generic;

namespace Ncov2019.Core.Dao
{
    /// <summary>
    ///  NCOV_ORDER_RECORD表的数据库操作抽象接口
    /// </summary>
    public interface INcovOrderRecordDao : IBaseHisDao<NcovOrderRecord>
    {
        List<NcovOrderRecordDto> QueryDataByRecSeq(long detailDataSeq);

        List<long> QueryHasImport(long record_seq);

        bool ClearOrders(long record_seq);

        bool DeleteOrders(List<NcovOrderRecordDto> orders);

        bool LisOrder(LisOrderProParam orderParam);

        List<NcovOrderRecord> QueryDataBy(NcovRecordParam param);

        /// <summary>
        /// 根据条件检索病人信息，根据建档日期倒序排列
        /// </summary>
        /// <param name="sInput"></param>
        /// <returns></returns>
        List<GyBingrenxxDto> SearchBrxx(string sInput);

        /// <summary>
        /// 根据身份证号获取最后一次未打印的条码
        /// </summary>
        /// <param name="shenFenZh"></param>
        /// <returns></returns>
        NcovOrderRecord QueryLastByIdNo(string shenFenZh);

        /// <summary>
        /// 判断获取LIS是否获取申请单消息
        /// </summary>
        /// <param name="jiuzhenid"></param>
        /// <param name="bingrenid"></param>
        /// <returns></returns>
        bool LisHasReady(string jiuzhenid, string bingrenid);
    }
}